<html>
<head>
    @include('v1.common.meta')
    <link rel="stylesheet" href="{{elixir('css/basicdata.css')}}">
    <style>
        .news-type-icon {
            display: inline-block;
            vertical-align: middle;
            width: 200px;
            line-height: 25px;
            padding: 20px 0;
            margin-right: -1px;
            margin-bottom: -1px;
            border: 1px solid #e2e2e2;
            font-size: 18px;
            text-align: center;
            color: #666;
            transition: all .3s;
            -webkit-transition: all .3s;
        }
        .news-type-icon .layui-anim {
            width: 150px;
            height: 150px;
            line-height: 150px;
            margin: 0 auto 10px;
            text-align: center;
            cursor: pointer;
            color: #fff;
            border-radius: 50%;
        }
        .news-type-text {
            background-color: #1E9FFF;
        }
        .news-type-pics {
            background-color: #FFB800;
        }
        .news-type-video {
            background-color: #FF5722;
        }
    </style>
</head>
<body>
<div class="yjs-grid">
    <div class="yjs-grid-box">
        <div class="layui-tab">
            @if(Auth::check())
                <div class="layui-container">
                    @if($view==='addData')
                        {{--新增视图--}}
                        <div class="layui-row">
                            <div class="layui-col-md12">
                                <fieldset class="layui-elem-field">
                                    <legend>选择新增内容类型</legend>
                                    <div class="layui-field-box">
                                        <div class="layui-row">
                                            <div class="layui-col-md12">
                                                <blockquote class="layui-elem-quote">
                                                    温馨提示：新增数据前，请选择合适地内容类型，系统将根据不同内容类型自动分配新增数据的表单模板；
                                                </blockquote>
                                            </div>
                                        </div>
                                        <div class="layui-row" name="typeForm">
                                            <input type="hidden" name="viewType" value="{{$view}}">
                                            <input type="hidden" name="contentType" value="0">
                                            <div class="layui-col-md4 news-type-icon">
                                                <div id="textType" class="news-type-text layui-anim" data-data="0" data-anim="layui-anim-rotate layui-anim-loop">图文</div>
                                            </div>
                                            {{--<div class="layui-col-md4 news-type-icon">--}}
                                            {{--<div id="picsType" class="news-type-pics layui-anim" data-data="1" data-anim="layui-anim-rotate layui-anim-loop">图集</div>--}}
                                            {{--</div>--}}
                                            <div class="layui-col-md4 news-type-icon">
                                                <div id="videoType" class="news-type-video layui-anim" data-data="2" data-anim="layui-anim-rotate layui-anim-loop">视频</div>
                                            </div>
                                        </div>
                                    </div>
                                </fieldset>
                            </div>
                        </div>
                    @else
                        {{--视图类型不正确--}}
                        <div class="layui-row">
                            <div class="layui-col-md12">
                                <blockquote class="layui-elem-quote-error">
                                    友情提示：视图类型不正确，无法支持后续操作。
                                </blockquote>
                            </div>
                        </div>
                    @endif
                </div>
            @else
                <div class="layui-container">
                    <div class="layui-row">
                        <div class="layui-col-md12">
                            <blockquote class="layui-elem-quote-error">
                                友情提示：该功能只面向已成功登录系统，并具有相应权限的用户可用。
                            </blockquote>
                        </div>
                    </div>
                </div>
            @endif
        </div>
    </div>
</div>
@include('v1.common.js')
<script src="{{elixir('js/noticeItemType.js')}}"></script>
</body>
</html>